﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Model.Auth.dto
{
    /// <summary>
    /// 手机登录数据传输对象，用于封装手机验证码登录相关参数
    /// </summary>
    public class PhoneLoginDto
    {
        /// <summary>
        /// 图形验证码，用于防止机器人请求
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 唯一标识，关联图形验证码会话
        /// </summary>
        public string Uuid { get; set; } = "";

        /// <summary>
        /// 登录IP地址，记录登录设备的IP
        /// </summary>
        public string LoginIP { get; set; }

        /// <summary>
        /// 手机号码，登录账号（必填项）
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空")]
        public string PhoneNum { get; set; }

        /// <summary>
        /// 手机短信验证码，用于身份验证
        /// </summary>
        //[Required(ErrorMessage = "短信验证码不能为空")]
        public string PhoneCode { get; set; }

        /// <summary>
        /// 操作类型
        /// 0: 手机验证码登录
        /// 1: 手机号绑定操作
        /// </summary>
        public int SendType { get; set; }
    }
}
